package com.dyc.caradvertisting.ui.fmt.trav;


import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.dyc.caradvertisting.R;
import com.dyc.caradvertisting.ui.adapter.MenuAdapter;
import com.dyc.caradvertisting.view.SegmentControl;
import com.njh.tools.base.BaseFragment;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 行车模式
 */
public class TravFmt extends BaseFragment {
    // TODO: Rename parameter arguments, choose names that match
    // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
    private static final String ARG_PARAM1 = "param1";
    private static final String ARG_PARAM2 = "param2";
    @BindView(R.id.segment_control)
    SegmentControl segmentControl;
    @BindView(R.id.list_message)
    ListView listMessage;


    // TODO: Rename and change types of parameters
    private String mParam1;
    private String mParam2;

    private List<String> mStrings;
    private MenuAdapter mMenuAdapter;

    public TravFmt() {
        // Required empty public constructor
    }

    public static TravFmt newInstance() {
        TravFmt fragment = new TravFmt();
        Bundle args = new Bundle();
        fragment.setArguments(args);
        return fragment;
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        ButterKnife.bind(this, getView(inflater, container));
        return getView(inflater, container);
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_trav_fmt;
    }

    @Override
    public void initView(View baseView) {
        initToolbarNav(R.string.trav_title);
        mStrings = new ArrayList<>();
        mStrings.addAll(Arrays.asList(this.getResources().getStringArray(R.array.s_msg)));
//        mMenuAdapter = new MenuAdapter(mStrings);
//        listMessage.setAdapter(mMenuAdapter);
//        switchTab.setSelect(switchTab.getViewList().get(1));
    }

    @Override
    public boolean isSwipeBack() {
        return false;
    }

    @Override
    public void initPresenter() {

    }
}
